﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>评论信息_{infotitle}_{sdcms[webname]}</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/artlist.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/comment.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";var infoid="{infoid}";var contenturl="{thisurl}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/js/jquery.livequery.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
{if sdcms[sys_mobile]}<script src="{webroot}lib/js/mobile.js"></script>{/if}
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}lib/js/sdcms.comment.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
</head>

<body>
    {sdcms:include("sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a>{sdcms.getpostion(parentid," > ")} > 评论</div>
    <div class="w980 mt10 mc" id="container">
        <div class="left">
            <div class="w610 b">
                <div class="title"><a href="{infourl}" title="{infotitle}">{infotitle}</a></div>
                <div class="info_intro">{if infopoint=0}{sdcms.cutstr(sdcms.nohtml(infointro),250,1)}{else}本文需要<span class="red">{infopoint}</span>积分才可以阅读{/if}</div>
                
                {sdcms:rs field="avatar,username,createdate,content,reply" table="sd_expand_comment" where="islock=1 [sqlwhere]" order="commentid desc" pagesize="20" isadminurl="0"}
                <div class="comment">
                    <div class="face"><img src="{webroot}upfile/avatar/{$rs[avatar]}/normal.jpg" /></div>
                    <div class="text">
                        <div class="div">
                            <div class="icon"></div>
                            <div class="base"><span>{$rs[createdate]}</span>{$rs[username]}</div>
                            <div class="content">{$rs[content]}</div>
                            {if sdcms.strlen($rs[reply])>0}<div class="reply"><strong>管理员回复：</strong>{$rs[reply]}</div>{/if}
                        </div>
                    </div>
                </div>
                {/sdcms:rs}
                <div class="list_page">{showpage}</div>
            </div>
            
            <div class="w610 b mt10">
                <div class="title">发表评论</div>
                <div id="comment_staus"></div>
            </div>
        </div>
        <div class="right">
            <div class="b">
                <div class="subject">热评话题</div>
                <ul class="toplist">
                    {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1 and comments>0" order="comments desc,id desc"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li><a href="?id={$rs[id]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],30,1)}</a></li>
                    {/sdcms:rs}   
                </ul>
            </div>
            
            <div class="b mt10">
                <div class="subject">随机推荐</div>
                <ul class="toplist">
                    {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1" order="rnd"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],30,1)}</a></li>
                    {/sdcms:rs}   
                </ul>
            </div>
            
        </div>
    </div>
    {sdcms:include("sdcms_foot.asp")}